﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Finance.IBll;
using Finance.IDal;
using Finance.Dal;

namespace Finance.Bll
{
    public class BillBll : IBillBll
    {
        IBillDal billDal = new BillDal();
        public bool Save(int bankCardId, int typeId, decimal amount, string remarks, string userName, int id)
        {
            return billDal.Save(bankCardId, typeId, amount,remarks, userName, id);
        }

        public IEnumerable<Entity.ViewAccountsEntity> List(int? bankCardId, DateTime? beginDate, DateTime? endDate, int pageIndex, int pageSize, out int total)
        {
            return billDal.List(bankCardId, beginDate, endDate, pageIndex, pageSize, out total);
        }
    }
}
